package threadsDemo.threadName;

import org.junit.Test;

public class ThreadNameTest {
	
	@Test
	public void testName() throws Exception {
		Runnable runnable = new Runnable() {
			public void run() {				
				Count count = new Count();
				count.count();
			}
		};
		for(int i = 0; i < 10; i++) {
			new Thread(runnable).start();			
		}
	}
	
	public static void main(String[] args) {
		Runnable runnable = new Runnable() {
			public void run() {				
				Count count = new Count();
				count.count();
			}
		};
		for(int i = 0; i < 10; i++) {
			new Thread(runnable).start();			
		}
	}
		
}